package com.spancer.contentcenter.test.listener;

import org.springframework.boot.context.event.ApplicationStartedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.core.annotation.Order;

/**
 * author by: mars
 * Date: 2020/10/13 13:14
 * Description:自定义监听器-方式2：
 * > 在启动类加入自定义i的listener
 *
 */
@Order(2)
public class SecondListener implements ApplicationListener<ApplicationStartedEvent> {

    @Override
    public void onApplicationEvent(ApplicationStartedEvent event) {
        System.out.println("second-mss listener...");
    }
}
